package com.ruoyi.ldzlsb.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 巡检周期配置对象 sb_inspection_cycle_config
 * 
 * @author ruoyi
 */
public class SbInspectionCycleConfig extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 配置ID */
    private Long configId;

    /** 巡检计划ID */
    @Excel(name = "巡检计划ID")
    private Long planId;

    /** 周期类型（1每天、2每周、3每月、4每季度、5每年、6自定义） */
    @Excel(name = "周期类型", readConverterExp = "1=每天,2=每周,3=每月,4=每季度,5=每年,6=自定义")
    private String cycleType;

    /** 周期值 */
    @Excel(name = "周期值")
    private Integer cycleValue;

    /** 周期配置数据JSON */
    @Excel(name = "周期配置数据JSON")
    private String configData;

    public void setConfigId(Long configId) 
    {
        this.configId = configId;
    }

    public Long getConfigId() 
    {
        return configId;
    }
    public void setPlanId(Long planId) 
    {
        this.planId = planId;
    }

    public Long getPlanId() 
    {
        return planId;
    }
    public void setCycleType(String cycleType) 
    {
        this.cycleType = cycleType;
    }

    public String getCycleType() 
    {
        return cycleType;
    }
    public void setCycleValue(Integer cycleValue) 
    {
        this.cycleValue = cycleValue;
    }

    public Integer getCycleValue() 
    {
        return cycleValue;
    }
    public void setConfigData(String configData) 
    {
        this.configData = configData;
    }

    public String getConfigData() 
    {
        return configData;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("configId", getConfigId())
            .append("planId", getPlanId())
            .append("cycleType", getCycleType())
            .append("cycleValue", getCycleValue())
            .append("configData", getConfigData())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .toString();
    }
} 